﻿using System;
using System.Collections.Generic;

namespace Models.Models;

/// <summary>
/// 购物车
/// </summary>
public partial class SCart
{
    /// <summary>
    /// 自增id
    /// </summary>
    public uint Id { get; set; }

    /// <summary>
    /// 用户id
    /// </summary>
    public uint? UserId { get; set; }

    /// <summary>
    /// 商品id
    /// </summary>
    public uint? GoodsId { get; set; }

    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; } = null!;

    /// <summary>
    /// 封面图片
    /// </summary>
    public string Images { get; set; } = null!;

    /// <summary>
    /// 原价
    /// </summary>
    public decimal OriginalPrice { get; set; }

    /// <summary>
    /// 销售价格
    /// </summary>
    public decimal Price { get; set; }

    /// <summary>
    /// 购买数量
    /// </summary>
    public uint Stock { get; set; }

    /// <summary>
    /// 规格
    /// </summary>
    public string Spec { get; set; } = null!;

    /// <summary>
    /// 添加时间
    /// </summary>
    public uint AddTime { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public uint UpdTime { get; set; }
}
